//
//  TeamManagerSectionHeader.m
//  TrainTree
//
//  Created by wanghui on 2017/9/19.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import "TeamManagerSectionHeader.h"

@implementation TeamManagerSectionHeader

- (void)awakeFromNib {
    [super awakeFromNib];
     
  self.isTouchDataBtn = YES;
}
#pragma mark - 根据按钮点击变更UI
- (void)setIsTouchDataBtn:(BOOL)isTouchDataBtn
{
    if (isTouchDataBtn) {

        [self.dataBtn setTitleColor:rgb(74.0, 74.0, 74.0) forState:UIControlStateNormal];
        [self.managerBtn setTitleColor:rgb(164.0, 164.0, 164.0) forState:UIControlStateNormal];

    } else{

        [self.dataBtn setTitleColor:rgb(164.0, 164.0, 164.0) forState:UIControlStateNormal];
        [self.managerBtn setTitleColor:rgb(74.0, 74.0, 74.0) forState:UIControlStateNormal];
    }

    self.dataLine.hidden = !isTouchDataBtn;
    self.managerLine.hidden = isTouchDataBtn;


}


@end
